package com.aibili.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
 * 视频评分表
 */
@Entity
@Table(name = "t_video_evaluat")
public class VideoEvaluate implements Serializable{


	private static final long serialVersionUID = 5992419804387253334L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", length = 11, nullable = false)
	private long id;
	
	@Column(name = "user_id")
	private long user_id;//用户id
	
	@Column(name = "rate_id")
	private long rate_id;//被评论用户id
	
	@Column(name = "grade")
	private int grade;// 评价等级0-5整数
	
	@Column(name = "content")
	private String content;//评价内容
	
	@Column(name = "create_time", columnDefinition = "TIMESTAMP default CURRENT_TIMESTAMP")
	private Date create_time;
	
	@Transient
	private UserInfo user;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUser_id() {
		return user_id;
	}

	public void setUser_id(long user_id) {
		this.user_id = user_id;
	}

	public long getRate_id() {
		return rate_id;
	}

	public void setRate_id(long rate_id) {
		this.rate_id = rate_id;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public UserInfo getUser() {
		return user;
	}

	public void setUser(UserInfo user) {
		this.user = user;
	}
	
}
